//
//  TeachKnowledgeCell.h
//  Grammar
//
//  Created by Rick on 6/29/13.
//
//

#import <UIKit/UIKit.h>
#import "ITTImageView.h"
#import "DetailKnowledge.h"
#import "GrammarExplain.h"

@protocol TeachKnowledgeCellDelegate <NSObject>

- (void)loadIsDoneWitHeight:(CGFloat)height;
- (void)didSelectImageView:(NSString*)imageUrl;

@end
@interface TeachKnowledgeCell : UITableViewCell<ITTImageViewDelegate>
{
    GrammarExplain *_currentExplain;
}
@property (retain, nonatomic) IBOutlet UIView *contentImageView;
@property (assign, nonatomic) id<TeachKnowledgeCellDelegate>delegate;
@property (retain, nonatomic) IBOutlet UIWebView *contentWebView;
@property (nonatomic) BOOL isFinishDownloaded;
@property (nonatomic) DetailKnowledgeCellType cellType;
- (void)setCellWithKnowledge:(GrammarExplain*)explain WithRefresh:(BOOL)isRefrsh;
- (CGFloat)getCellHeight;
@end